package com.hunlian.makelove;


import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.view.Window;
import android.widget.Button;

public class NoticeDialog {
	public static void show(Context context) {
		AlertDialog.Builder builder;
		final Dialog dialog;
		builder = new AlertDialog.Builder(context, R.style.noticeDialog);
		dialog = builder.create();
		dialog.setCanceledOnTouchOutside(false);
		dialog.show();
		Window window = dialog.getWindow();
		window.setContentView(R.layout.notice_dialog);
		
		Button btnMakeSure = (Button) window.findViewById(R.id.btnMakeSure);
		btnMakeSure.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				dialog.dismiss();
			}
		});
	}

}
